package com.tianqu.tms.entity;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.dao.AucCarInfoDao;
import com.tianqu.tms.dao.TmsDao;
import com.tianqu.tms.dao.ViewListDao;
import com.tianqu.tms.dto.AucCarInfoDto;
import com.tianqu.tms.dto.BaseCarInfoDto;

public class AucCarInfo  extends ViewListManager  {
	private static final long serialVersionUID = 5794714188516643799L;
	private int id;
	private String carName;
	private String serial;
	private String carOwner;
	private int carDetectId;
	private String vin;
	private String engine;
	private String licensePlate;
	private int price;
	private int color;
	private String modelCode;
	private String vendorCode;
	private String regDate;
	private String yearCarefulPeriod;
	private int displacement;
	private String jqx;
	private int carUse;
	private int carType;
	private int attribute;
	private int mileage;
	private int gearbox;
	private String sendCardDate;
	private int cardType;
	private int countryStyle;
	private String registerCardNo;
	private String contactPerson;
	private String contactPhone;
	private String carOwnerIdCardNo;
	private String vendorId;
	private String brandId;
	private String carStyleId;
	private int fuelType;
	private int loadquality;
	private int passenger;
	private int ownerType;
	private String ownerPhone;
	private String ownerAddress;
	private String ownerOrgNo;
	private int skylight;
	private int leatherSeats;
	private int aluminumRim;
	private int gpsNavigation;
	private int autoWindow;
	private int abs;
	private int srsNumber;
	private int fourWheelDrive;
	private String totalScore;
	private String externalScore;
	private String internalScore;
	private int troubleCar;
	private String carDescribe;
	private Timestamp chkTime;
	private int status;
	private Timestamp updateTime;
	private int updateUser;
	private Timestamp insertTime;
// 竞价管理修正 Start
	private String ownerSex;
	private String ownerBirthday;
	private String photo1;
	private String photo2;
	private String photo3;
	private String photo4;
	private String photo5;
	private String photo6;
	private String photo7;
	private String photo8;
	private String photo9;
	private String photo10;
	private String photo11;
	private String photo12;
	private String photo13;
	private String photo14;
	private String photo15;
	private String photo16;
	private String photo17;
	private String photo18;
	private String photo19;
	private String photo20;
	private String photo21;
	private String photo22;// 图片从8张增加到20张  modify by mufeiyu
// 竞价管理修正 End
	
	/**
	 * 竞价信息
	 * 
	 * @return
	 */
	// 起拍价格
	private int startingPrices;
	// 当前价格
	private int nowPrice;
	// 开始时间
	private Timestamp startTime;
	// 状态
	private int bidStatus;

	public static AucCarInfo getInstance() {
		AucCarInfo auc = new AucCarInfo();
		auc.setExisting(false);
		return auc;
	}

	/**
	 * 获得基础数据的车辆信息
	 * 
	 * @param Vin
	 * @return
	 * @throws TmsDaoException
	 */
	public AucCarInfo getaucCar(String Vin) throws TmsDaoException {
		AucCarInfoDao dao = (AucCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_BASE_CAR_INFO);
		BaseCarInfoDto aucDto = dao.getBaseCarFromAucCarInfo(Vin);
		return setAucCarInfo(aucDto);
	}

	/**
	 * 插入车辆基本信息
	 * 
	 * @param dto
	 * @throws TmsDaoException
	 */
	public int insertAucCar(AucCarInfo dto) throws TmsDaoException {
		AucCarInfoDao dao = (AucCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_BASE_CAR_INFO);
		return dao.insertAucCar(setAucCarInfo(dto));
	}

// 竞价管理修正 Start
	/**
	 * 获得车辆信息列表
	 */
	public List<AucCarInfo> getaucCarList(String licensePlate, String vin,
			String startTime) throws TmsDaoException {	
		AucCarInfoDao dao = (AucCarInfoDao) TmsDao.getInstance(TmsDao.TMS_BASE_CAR_INFO,getPageNo(), getMaxIndex(), getSortKey(), isAsc());
		ViewListDao idao = (ViewListDao) TmsDao.getViewListDao((TmsDao) dao,TmsDao.TMS_BASE_CAR_INFO);
		
		List<AucCarInfoDto> listDto = dao.getaucCarList(licensePlate, vin, startTime);
		
		AucCarInfo auc = AucCarInfo.getInstance();
		
		if (listDto.size() > 0) {
			//fenye
			setPagingInfo(idao);
			List<AucCarInfo> aucList = list(listDto);
			return aucList;
		}
		return null;
	}
// 竞价管理修正 End

	/**
	 * 根据车辆ID获得车辆的基本信息
	 * 
	 * @param serial
	 * @return
	 * @throws TmsDaoException
	 */
	public AucCarInfo getaucCarBase(String serial) throws TmsDaoException {
		AucCarInfoDao dao = (AucCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_BASE_CAR_INFO);
		AucCarInfoDto dto = dao.getaucCarBase(serial);
		return dtoToEntity(dto);
	}

	/**
	 * 更新车辆信息
	 */
	public void updateCar(AucCarInfo auc)throws TmsDaoException{
		AucCarInfoDao dao = (AucCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_BASE_CAR_INFO);
	 dao.updateCar(setAucCarInfo(auc));
	}
	
	/**
	 * 
	 * 
	 * 根据车辆ID获取竞拍车辆信息
	 * @throws TmsDaoException 
	 */
	public AucCarInfo findAucCarInfoBySerial(String serial) throws TmsDaoException
	{
		AucCarInfoDao dao = (AucCarInfoDao) TmsDao.getInstance(TmsDao.TMS_BASE_CAR_INFO);
		
		AucCarInfoDto dto = dao.findAucCarInfoBySerial(serial);
				
		return setEntityFromDto(dto);
	}

	/**
	 * 根据车辆ID更新表显里程
	 * @throws TmsDaoException 
	 */
	public void updateMeliageBySerial(String serial,int meliage) throws TmsDaoException
	{
		AucCarInfoDao dao = (AucCarInfoDao) TmsDao.getInstance(TmsDao.TMS_BASE_CAR_INFO);
		
		dao.updateMeliageBySerial(serial,meliage);
		
	}
	
	/**
	   *如果查询结果集： 真/更新  假/返回
	   */
	public boolean updateStatus(String serial,Timestamp updateTime)throws TmsDaoException{
		AucCarInfoDao dao = (AucCarInfoDao) TmsDao.getInstance(TmsDao.TMS_BASE_CAR_INFO);
		return dao.updateStatus(serial, updateTime);
	}
	
	
	
	/**
	 * 数据转换
	 * 
	 * @param dto
	 * @return
	 */
	private AucCarInfo setAucCarInfo(BaseCarInfoDto dto) {
		if (dto == null)
			return null;
		AucCarInfo entity = new AucCarInfo();
		entity.setSerial(dto.getSerial());
		entity.setVin(dto.getVin());
		entity.setLicensePlate(dto.getLicensePlate());
		entity.setModelCode(dto.getModelCode());
		entity.setVendorCode(dto.getVendorCode());
		entity.setRegisterCardNo(dto.getRegisterCardNo());
		entity.setEngine(dto.getEngine());
		entity.setRegDate(dto.getRegDate());
		entity.setYearCarefulPeriod(dto.getYearCarefulPeriod());
		entity.setJqx(dto.getJqx());
		entity.setSendCardDate(dto.getSendCardDate());
		entity.setColor(dto.getColor());
		entity.setDisplacement(dto.getDisplacement());
		entity.setGearbox(dto.getGearbox());
		entity.setCarUse(dto.getCarUse());
		entity.setCarType(dto.getCarType());
		entity.setCardType(dto.getCardType());
		entity.setCountryStyle(dto.getCountryStyle());
		entity.setFuelType(dto.getFuelType());
		entity.setLoadquality(dto.getLoadquality());
		entity.setPassenger(dto.getPassenger());
		entity.setOwnerType(dto.getOwnerType());
		entity.setCarOwner(dto.getCarOwner());
		entity.setCarOwnerIdCardNo(dto.getCarOwnerIdCardNo());
		entity.setOwnerOrgNo(dto.getOwnerOrgNo());
		entity.setOwnerPhone(dto.getOwnerPhone());
		entity.setOwnerAddress(dto.getOwnerAddress());
		entity.setBrandId(dto.getBrandId());
		entity.setCarStyleId(dto.getCarStyleId());
		entity.setVendorId(dto.getVendorId());
		entity.setInsertTime(dto.getInsertTime());
// 竞价管理修正 Start
		entity.setMileage(dto.getMileage());
		entity.setPrice(dto.getPrice());
		entity.setContactPerson(dto.getContactPerson());
		entity.setContactPhone(dto.getContactPhone());
		entity.setOwnerSex(dto.getOwnerSex());
		entity.setOwnerBirthday(dto.getOwnerBirthday());
		entity.setPhoto1(dto.getPhoto1());
		entity.setPhoto2(dto.getPhoto2());
		entity.setPhoto3(dto.getPhoto3());
		entity.setPhoto4(dto.getPhoto4());
		entity.setPhoto5(dto.getPhoto5());
		entity.setPhoto6(dto.getPhoto6());
		entity.setPhoto7(dto.getPhoto7());
		entity.setPhoto8(dto.getPhoto8());
		entity.setPhoto9(dto.getPhoto9());
		entity.setPhoto10(dto.getPhoto10());
		entity.setPhoto11(dto.getPhoto11());
		entity.setPhoto12(dto.getPhoto12());
		entity.setPhoto13(dto.getPhoto13());
		entity.setPhoto14(dto.getPhoto14());
		entity.setPhoto15(dto.getPhoto15());
		entity.setPhoto16(dto.getPhoto16());
		entity.setPhoto17(dto.getPhoto17());
		entity.setPhoto18(dto.getPhoto18());
		entity.setPhoto19(dto.getPhoto19());
		entity.setPhoto20(dto.getPhoto20());
		entity.setPhoto21(dto.getPhoto21());
		entity.setPhoto22(dto.getPhoto22());// 图片从8张增加到20张  modify by mufeiyu
// 竞价管理修正 End
		return entity;

	}

	/**
	 * 数据转换
	 * 
	 * @param entity
	 * @return
	 */
	private AucCarInfoDto setAucCarInfo(AucCarInfo entity) {
		AucCarInfoDto dto = new AucCarInfoDto();
		dto.setId(entity.getId());
		dto.setCarName(entity.getCarName());
		dto.setSerial(entity.getSerial());
		dto.setCarOwner(entity.getCarOwner());
		dto.setCarDetectId(entity.getCarDetectId());
		dto.setVin(entity.getVin());
		dto.setLicensePlate(entity.getLicensePlate());
		dto.setPrice(entity.getPrice());
		dto.setColor(entity.getColor());
		dto.setRegDate(entity.getRegDate());
		dto.setYearCarefulPeriod(entity.getYearCarefulPeriod());
		dto.setJqx(entity.getJqx());
		dto.setMileage(entity.getMileage());
		dto.setContactPerson(entity.getContactPerson());
		dto.setContactPhone(entity.getContactPhone());
		dto.setCarOwnerIdCardNo(entity.getCarOwnerIdCardNo());
		dto.setVendorId(entity.getVendorId());
		dto.setBrandId(entity.getBrandId());
		dto.setCarStyleId(entity.getCarStyleId());
		dto.setOwnerType(entity.getOwnerType());
		dto.setOwnerPhone(entity.getOwnerPhone());
		dto.setOwnerAddress(entity.getOwnerAddress());
		dto.setUpdateTime(entity.getUpdateTime());
		dto.setUpdateUser(entity.getUpdateUser());
		dto.setInsertTime(entity.getInsertTime());
// 竞价管理修正 Start
		dto.setOwnerSex(entity.getOwnerSex());
		dto.setOwnerBirthday(entity.getOwnerBirthday());
		dto.setPhoto1(entity.getPhoto1());
		dto.setPhoto2(entity.getPhoto2());
		dto.setPhoto3(entity.getPhoto3());
		dto.setPhoto4(entity.getPhoto4());
		dto.setPhoto5(entity.getPhoto5());
		dto.setPhoto6(entity.getPhoto6());
		dto.setPhoto7(entity.getPhoto7());
		dto.setPhoto8(entity.getPhoto8());
		dto.setPhoto9(entity.getPhoto9());
		dto.setPhoto10(entity.getPhoto10());
		dto.setPhoto11(entity.getPhoto11());
		dto.setPhoto12(entity.getPhoto12());
		dto.setPhoto13(entity.getPhoto13());
		dto.setPhoto14(entity.getPhoto14());
		dto.setPhoto15(entity.getPhoto15());
		dto.setPhoto16(entity.getPhoto16());
		dto.setPhoto17(entity.getPhoto17());
		dto.setPhoto18(entity.getPhoto18());
		dto.setPhoto19(entity.getPhoto19());
		dto.setPhoto20(entity.getPhoto20());
		dto.setPhoto21(entity.getPhoto21());
		dto.setPhoto22(entity.getPhoto22());// 图片从8张增加到20张  modify by mufeiyu
// 竞价管理修正 End
		return dto;

	}


	private AucCarInfo dtoToEntity(AucCarInfoDto dto) {
		AucCarInfo entity = new AucCarInfo();
		entity.setId(dto.getId());
		entity.setCarName(dto.getCarName());
		entity.setSerial(dto.getSerial());
		entity.setCarOwner(dto.getCarOwner());
		entity.setCarDetectId(dto.getCarDetectId());
		entity.setVin(dto.getVin());
		entity.setLicensePlate(dto.getLicensePlate());
		entity.setPrice(dto.getPrice());
		entity.setColor(dto.getColor());
		entity.setRegDate(dto.getRegDate());
		entity.setYearCarefulPeriod(dto.getYearCarefulPeriod());
		entity.setJqx(dto.getJqx());
		entity.setCarUse(entity.getCarUse());
		entity.setMileage(dto.getMileage());
		entity.setContactPerson(dto.getContactPerson());
		entity.setContactPhone(dto.getContactPhone());
		entity.setCarOwnerIdCardNo(dto.getCarOwnerIdCardNo());
		entity.setBrandId(dto.getBrandId());
		entity.setCarStyleId(dto.getCarStyleId());
		entity.setOwnerType(dto.getOwnerType());
		entity.setOwnerPhone(dto.getOwnerPhone());
		entity.setOwnerAddress(dto.getOwnerAddress());
		//增加品牌 车系 款式
		entity.setVendorId(dto.getVendorId());
		//updateTime
		entity.setUpdateTime(dto.getUpdateTime());
// 竞价管理修正 Start
		entity.setOwnerSex(dto.getOwnerSex());
		entity.setOwnerBirthday(dto.getOwnerBirthday());
		entity.setPhoto1(dto.getPhoto1());
		entity.setPhoto2(dto.getPhoto2());
		entity.setPhoto3(dto.getPhoto3());
		entity.setPhoto4(dto.getPhoto4());
		entity.setPhoto5(dto.getPhoto5());
		entity.setPhoto6(dto.getPhoto6());
		entity.setPhoto7(dto.getPhoto7());
		entity.setPhoto8(dto.getPhoto8());
		entity.setPhoto9(dto.getPhoto9());
		entity.setPhoto10(dto.getPhoto10());
		entity.setPhoto11(dto.getPhoto11());
		entity.setPhoto12(dto.getPhoto12());
		entity.setPhoto13(dto.getPhoto13());
		entity.setPhoto14(dto.getPhoto14());
		entity.setPhoto15(dto.getPhoto15());
		entity.setPhoto16(dto.getPhoto16());
		entity.setPhoto17(dto.getPhoto17());
		entity.setPhoto18(dto.getPhoto18());
		entity.setPhoto19(dto.getPhoto19());
		entity.setPhoto20(dto.getPhoto20());
		entity.setPhoto21(dto.getPhoto21());
		entity.setPhoto22(dto.getPhoto22());// 图片从8张增加到20张  modify by mufeiyu
// 竞价管理修正 End
		return entity;
	}

	/**
	 * 查询结果集处理
	 * 
	 * @param aucList
	 * @return
	 */
	private List<AucCarInfo> list(List<AucCarInfoDto> aucList) {
		List<AucCarInfo> list = new ArrayList<AucCarInfo>();
		for (AucCarInfoDto dto : aucList) {
			AucCarInfo auc = new AucCarInfo();
			auc.setId(dto.getId());
			auc.setSerial(dto.getSerial());
			auc.setCarName(dto.getCarName());
			auc.setLicensePlate(dto.getLicensePlate());
			auc.setVin(dto.getVin());
			auc.setNowPrice(dto.getNowPrice());
			auc.setStartTime(dto.getStartTime());
			auc.setBidStatus(dto.getBidStatus());
			list.add(auc);
		}
		return list;
	}

	/**
	 * 数据转换
	 * 
	 * @param dto
	 * @return
	 */
	private AucCarInfo setEntityFromDto(AucCarInfoDto dto) {
		if (dto == null)
			return null;
		AucCarInfo entity = new AucCarInfo();
		entity.setSerial(dto.getSerial());
		entity.setCarName(dto.getCarName());
		entity.setVin(dto.getVin());
		entity.setLicensePlate(dto.getLicensePlate());
		entity.setRegDate(dto.getRegDate());
		entity.setYearCarefulPeriod(dto.getYearCarefulPeriod());
		entity.setJqx(dto.getJqx());
		entity.setColor(dto.getColor());
		entity.setOwnerType(dto.getOwnerType());
		entity.setCarOwner(dto.getCarOwner());
		entity.setCarOwnerIdCardNo(dto.getCarOwnerIdCardNo());
		entity.setOwnerPhone(dto.getOwnerPhone());
		entity.setOwnerAddress(dto.getOwnerAddress());
		entity.setBrandId(dto.getBrandId());
		entity.setCarStyleId(dto.getCarStyleId());
		entity.setInsertTime(dto.getInsertTime());
		entity.setMileage(dto.getMileage());
// 竞价管理修正 Start
		entity.setPrice(dto.getPrice());
		entity.setContactPerson(dto.getContactPerson());
		entity.setContactPhone(dto.getContactPhone());
		entity.setOwnerSex(dto.getOwnerSex());
		entity.setOwnerBirthday(dto.getOwnerBirthday());
// 竞价管理修正 End
		
		return entity;

	}
	


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	public String getCarOwner() {
		return carOwner;
	}

	public void setCarOwner(String carOwner) {
		this.carOwner = carOwner;
	}

	public int getCarDetectId() {
		return carDetectId;
	}

	public void setCarDetectId(int carDetectId) {
		this.carDetectId = carDetectId;
	}

	public String getVin() {
		return vin;
	}

	public void setVin(String vin) {
		this.vin = vin;
	}

	public String getEngine() {
		return engine;
	}

	public void setEngine(String engine) {
		this.engine = engine;
	}

	public String getLicensePlate() {
		return licensePlate;
	}

	public void setLicensePlate(String licensePlate) {
		this.licensePlate = licensePlate;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

	public String getModelCode() {
		return modelCode;
	}

	public void setModelCode(String modelCode) {
		this.modelCode = modelCode;
	}

	public String getVendorCode() {
		return vendorCode;
	}

	public void setVendorCode(String vendorCode) {
		this.vendorCode = vendorCode;
	}

	public String getRegDate() {
		return regDate;
	}

	public void setRegDate(String regDate) {
		this.regDate = regDate;
	}

	public String getYearCarefulPeriod() {
		return yearCarefulPeriod;
	}

	public void setYearCarefulPeriod(String yearCarefulPeriod) {
		this.yearCarefulPeriod = yearCarefulPeriod;
	}

	public int getDisplacement() {
		return displacement;
	}

	public void setDisplacement(int displacement) {
		this.displacement = displacement;
	}

	public String getJqx() {
		return jqx;
	}

	public void setJqx(String jqx) {
		this.jqx = jqx;
	}

	public int getCarUse() {
		return carUse;
	}

	public void setCarUse(int carUse) {
		this.carUse = carUse;
	}

	public int getCarType() {
		return carType;
	}

	public void setCarType(int carType) {
		this.carType = carType;
	}

	public int getAttribute() {
		return attribute;
	}

	public void setAttribute(int attribute) {
		this.attribute = attribute;
	}

	public int getMileage() {
		return mileage;
	}

	public void setMileage(int mileage) {
		this.mileage = mileage;
	}

	public int getGearbox() {
		return gearbox;
	}

	public void setGearbox(int gearbox) {
		this.gearbox = gearbox;
	}

	public String getSendCardDate() {
		return sendCardDate;
	}

	public void setSendCardDate(String sendCardDate) {
		this.sendCardDate = sendCardDate;
	}

	public int getCardType() {
		return cardType;
	}

	public void setCardType(int cardType) {
		this.cardType = cardType;
	}

	public int getCountryStyle() {
		return countryStyle;
	}

	public void setCountryStyle(int countryStyle) {
		this.countryStyle = countryStyle;
	}

	public String getRegisterCardNo() {
		return registerCardNo;
	}

	public void setRegisterCardNo(String registerCardNo) {
		this.registerCardNo = registerCardNo;
	}

	public String getContactPerson() {
		return contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getCarOwnerIdCardNo() {
		return carOwnerIdCardNo;
	}

	public void setCarOwnerIdCardNo(String carOwnerIdCardNo) {
		this.carOwnerIdCardNo = carOwnerIdCardNo;
	}
	
	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getCarStyleId() {
		return carStyleId;
	}

	public void setCarStyleId(String carStyleId) {
		this.carStyleId = carStyleId;
	}

	public int getFuelType() {
		return fuelType;
	}

	public void setFuelType(int fuelType) {
		this.fuelType = fuelType;
	}

	public int getLoadquality() {
		return loadquality;
	}

	public void setLoadquality(int loadquality) {
		this.loadquality = loadquality;
	}

	public int getPassenger() {
		return passenger;
	}

	public void setPassenger(int passenger) {
		this.passenger = passenger;
	}

	public int getOwnerType() {
		return ownerType;
	}

	public void setOwnerType(int ownerType) {
		this.ownerType = ownerType;
	}

	public String getOwnerPhone() {
		return ownerPhone;
	}

	public void setOwnerPhone(String ownerPhone) {
		this.ownerPhone = ownerPhone;
	}

	public String getOwnerAddress() {
		return ownerAddress;
	}

	public void setOwnerAddress(String ownerAddress) {
		this.ownerAddress = ownerAddress;
	}

	public String getOwnerOrgNo() {
		return ownerOrgNo;
	}

	public void setOwnerOrgNo(String ownerOrgNo) {
		this.ownerOrgNo = ownerOrgNo;
	}

	public int getSkylight() {
		return skylight;
	}

	public void setSkylight(int skylight) {
		this.skylight = skylight;
	}

	public int getLeatherSeats() {
		return leatherSeats;
	}

	public void setLeatherSeats(int leatherSeats) {
		this.leatherSeats = leatherSeats;
	}

	public int getAluminumRim() {
		return aluminumRim;
	}

	public void setAluminumRim(int aluminumRim) {
		this.aluminumRim = aluminumRim;
	}

	public int getGpsNavigation() {
		return gpsNavigation;
	}

	public void setGpsNavigation(int gpsNavigation) {
		this.gpsNavigation = gpsNavigation;
	}

	public int getAutoWindow() {
		return autoWindow;
	}

	public void setAutoWindow(int autoWindow) {
		this.autoWindow = autoWindow;
	}

	public int getAbs() {
		return abs;
	}

	public void setAbs(int abs) {
		this.abs = abs;
	}

	public int getSrsNumber() {
		return srsNumber;
	}

	public void setSrsNumber(int srsNumber) {
		this.srsNumber = srsNumber;
	}

	public int getFourWheelDrive() {
		return fourWheelDrive;
	}

	public void setFourWheelDrive(int fourWheelDrive) {
		this.fourWheelDrive = fourWheelDrive;
	}

	public String getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(String totalScore) {
		this.totalScore = totalScore;
	}

	public String getExternalScore() {
		return externalScore;
	}

	public void setExternalScore(String externalScore) {
		this.externalScore = externalScore;
	}

	public String getInternalScore() {
		return internalScore;
	}

	public void setInternalScore(String internalScore) {
		this.internalScore = internalScore;
	}

	public int getTroubleCar() {
		return troubleCar;
	}

	public void setTroubleCar(int troubleCar) {
		this.troubleCar = troubleCar;
	}

	public String getCarDescribe() {
		return carDescribe;
	}

	public void setCarDescribe(String carDescribe) {
		this.carDescribe = carDescribe;
	}

	public Timestamp getChkTime() {
		return chkTime;
	}

	public void setChkTime(Timestamp chkTime) {
		this.chkTime = chkTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public int getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(int updateUser) {
		this.updateUser = updateUser;
	}

	public Timestamp getInsertTime() {
		return insertTime;
	}

	public void setInsertTime(Timestamp insertTime) {
		this.insertTime = insertTime;
	}

	public int getStartingPrices() {
		return startingPrices;
	}

	public void setStartingPrices(int startingPrices) {
		this.startingPrices = startingPrices;
	}

	public int getNowPrice() {
		return nowPrice;
	}

	public void setNowPrice(int nowPrice) {
		this.nowPrice = nowPrice;
	}

	public Timestamp getStartTime() {
		return startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public int getBidStatus() {
		return bidStatus;
	}

	public void setBidStatus(int bidStatus) {
		this.bidStatus = bidStatus;
	}

	public String getCarName() {
		return carName;
	}

	public void setCarName(String carName) {
		this.carName = carName;
	}

	public String getVendorId() {
		return vendorId;
	}

	public void setVendorId(String vendorId) {
		this.vendorId = vendorId;
	}

// 竞价管理修正 Start
	public String getOwnerSex() {
		return ownerSex;
	}

	public void setOwnerSex(String ownerSex) {
		this.ownerSex = ownerSex;
	}
	
	public String getOwnerBirthday() {
		return ownerBirthday;
	}

	public void setOwnerBirthday(String ownerBirthday) {
		this.ownerBirthday = ownerBirthday;
	}
	
	public String getPhoto1() {
		return photo1;
	}

	public void setPhoto1(String photo1) {
		this.photo1 = photo1;
	}

	public String getPhoto2() {
		return photo2;
	}

	public void setPhoto2(String photo2) {
		this.photo2 = photo2;
	}

	public String getPhoto3() {
		return photo3;
	}

	public void setPhoto3(String photo3) {
		this.photo3 = photo3;
	}

	public String getPhoto4() {
		return photo4;
	}

	public void setPhoto4(String photo4) {
		this.photo4 = photo4;
	}

	public String getPhoto5() {
		return photo5;
	}

	public void setPhoto5(String photo5) {
		this.photo5 = photo5;
	}

	public String getPhoto6() {
		return photo6;
	}

	public void setPhoto6(String photo6) {
		this.photo6 = photo6;
	}

	public String getPhoto7() {
		return photo7;
	}

	public void setPhoto7(String photo7) {
		this.photo7 = photo7;
	}

	public String getPhoto8() {
		return photo8;
	}

	public void setPhoto8(String photo8) {
		this.photo8 = photo8;
	}

	public String getPhoto9() {
		return photo9;
	}

	public void setPhoto9(String photo9) {
		this.photo9 = photo9;
	}

	public String getPhoto10() {
		return photo10;
	}

	public void setPhoto10(String photo10) {
		this.photo10 = photo10;
	}
// 图片从8张增加到20张  modify by mufeiyu
	public void setPhoto11(String photo11) {
		this.photo11 = photo11;
	}

	public String getPhoto11() {
		return photo11;
	}

	public void setPhoto12(String photo12) {
		this.photo12 = photo12;
	}

	public String getPhoto12() {
		return photo12;
	}

	public void setPhoto13(String photo13) {
		this.photo13 = photo13;
	}

	public String getPhoto13() {
		return photo13;
	}

	public void setPhoto14(String photo14) {
		this.photo14 = photo14;
	}

	public String getPhoto14() {
		return photo14;
	}

	public void setPhoto15(String photo15) {
		this.photo15 = photo15;
	}

	public String getPhoto15() {
		return photo15;
	}

	public void setPhoto16(String photo16) {
		this.photo16 = photo16;
	}

	public String getPhoto16() {
		return photo16;
	}

	public void setPhoto17(String photo17) {
		this.photo17 = photo17;
	}

	public String getPhoto17() {
		return photo17;
	}

	public void setPhoto18(String photo18) {
		this.photo18 = photo18;
	}

	public String getPhoto18() {
		return photo18;
	}

	public void setPhoto19(String photo19) {
		this.photo19 = photo19;
	}

	public String getPhoto19() {
		return photo19;
	}

	public void setPhoto20(String photo20) {
		this.photo20 = photo20;
	}

	public String getPhoto20() {
		return photo20;
	}

	public void setPhoto21(String photo21) {
		this.photo21 = photo21;
	}

	public String getPhoto21() {
		return photo21;
	}

	public void setPhoto22(String photo22) {
		this.photo22 = photo22;
	}

	public String getPhoto22() {
		return photo22;
	}
// 竞价管理修正 End
}
